home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / intuisup.lha / Intuisup / source.lha / Gadgets / imports.h < prev    next >
C/C++ Source or Header  |  1992-07-19  |  6KB  |  133 lines

  1. /* $Revision Header *** Header built automatically - do not edit! ***********
  2.  *
  3.  *    (C) Copyright 1991 by Torsten Jürgeleit
  4.  *
  5.  *    Name .....: imports.h
  6.  *    Created ..: Thursday 19-Dec-91 20:53:10
  7.  *    Revision .: 0
  8.  *
  9.  *    Date        Author                 Comment
  10.  *    =========   ====================   ====================
  11.  *    19-Dec-91   Torsten Jürgeleit      Created this file!
  12.  *
  13.  ****************************************************************************
  14.  *
  15.  *    Imports, prototypes and pragmas for gadget functions
  16.  *
  17.  * $Revision Header ********************************************************/
  18.  
  19.     /* Imports */
  20.  
  21. IMPORT struct IntuitionBase  *IntuitionBase;
  22. IMPORT struct Device         *ConsoleDevice;
  23.  
  24. IMPORT BYTE  hotkey_id[];    /* gadgets1.c */
  25. IMPORT ULONG dec_table[];    /* texts/texts.c */
  26.  
  27.     /* Static prototypes - gadgets1.c */
  28.  
  29. struct IntuiMessage    *perform_gadget_action(struct ExtendedGadget  *egad,
  30.                        struct IntuiMessage  *real_imsg);
  31. struct IntuiMessage    *perform_hotkey_action(struct ExtendedGadget  *egad,
  32.                        struct IntuiMessage  *real_imsg);
  33. struct IntuiMessage    *create_intui_message(struct IntuiMessage  *real_imsg,
  34.              struct GadgetList  *gl,USHORT data_entry, ULONG value);
  35. struct ExtendedGadget  *get_active_gadget(struct Window  *win);
  36. struct ExtendedGadget  *get_hotkey_gadget(struct Window  *win,
  37.                                 USHORT hotkey);
  38. USHORT remove_visible_gadget_lists(struct Window  *win,
  39.                              struct MinList  *list);
  40. struct GadgetList      *get_first_gadget_list(struct Window  *win);
  41. VOID   display_visible_gadget_lists(struct Window  *win,
  42.                              struct MinList  *list);
  43.     /* Static pragmas - gadgets1.c */
  44.  
  45. #pragma regcall(perform_gadget_action(a0,a1))
  46. #pragma regcall(perform_hotkey_action(a0,a1))
  47. #pragma regcall(create_intui_message(a0,a1,d0,d1))
  48. #pragma regcall(get_active_gadget(a0))
  49. #pragma regcall(get_hotkey_gadget(a0,d0))
  50. #pragma regcall(get_first_gadget_list(a0))
  51. #pragma regcall(remove_visible_gadget_lists(a0,a1))
  52. #pragma regcall(display_visible_gadget_lists(a0,a1))
  53.  
  54.     /* Static prototypes - gadgets2.c */
  55.  
  56. USHORT count_gadget_data_entries(struct GadgetData  *gd);
  57. ULONG  get_gadget_buffer_size(struct GadgetList  *gl, struct GadgetData  *gd);
  58. ULONG  get_image_buffer_size(struct GadgetList  *gl, struct GadgetData  *gd);
  59. VOID   init_gadgets(struct GadgetList  *gl, struct GadgetData  *gd,
  60.                           SHORT hoffset, SHORT voffset);
  61. BYTE   *init_extended_gadget(struct ExtendedGadget  *egad, BYTE *buffer,
  62.       struct GadgetList  *gl, struct GadgetData  *gd, USHORT data_entry,
  63.            USHORT type, USHORT left_edge, USHORT top_edge, USHORT width,
  64.                                  USHORT height);
  65. BYTE   *init_gadget_border(BYTE *buffer, struct RenderInfo  *ri,
  66.                  struct ExtendedGadget  *egad, ULONG flags);
  67. VOID   init_gadget_text(struct ExtendedGadget  *egad, BYTE *text,
  68.                    USHORT width, USHORT height, ULONG flags,
  69.                            struct TextAttr  *text_attr);
  70. BYTE   *init_mx_text(struct ExtendedGadget  *egad, BYTE *buffer, BYTE *text,
  71.                    USHORT width, USHORT height, ULONG flags,
  72.                            struct TextAttr  *text_attr);
  73. BOOL   check_gadget_image(struct Image  *image);
  74. BYTE   *init_button_image(struct ExtendedGadget  *egad,
  75.                       struct GadgetData  *gd, BYTE *buffer);
  76. BYTE   *init_image_data(struct ExtendedGadget  *image, BYTE *buffer);
  77.  
  78.     /* Static pragmas - gadgets2.c */
  79.  
  80. #pragma regcall(count_gadget_data_entries(a0))
  81. #pragma regcall(get_gadget_buffer_size(a0,a1))
  82. #pragma regcall(get_image_buffer_size(a0,a1))
  83. #pragma regcall(init_gadgets(a0,a1,d0,d1))
  84. #pragma regcall(init_extended_gadget(a0,a1,a2,a3,d0,d1,d2,d3,d4,d5))
  85. #pragma regcall(init_gadget_border(a0,a1,a2,d0))
  86. #pragma regcall(init_gadget_text(a0,a1,d0,d1,d2,a2))
  87. #pragma regcall(init_mx_text(a0,a1,a2,d0,d1,d2,a3))
  88. #pragma regcall(check_gadget_image(a0))
  89. #pragma regcall(init_button_image(a0,a1,a2))
  90. #pragma regcall(init_image_data(a0,a1))
  91.  
  92.     /* Static prototypes - gadgets3.c */
  93.  
  94. VOID   refresh_gadget(struct ExtendedGadget  *egad);
  95. VOID   change_gadget(struct ExtendedGadget  *egad);
  96. BOOL   change_cycle_gadget(struct ExtendedGadget  *egad, ULONG qualifier);
  97. LONG   pop_up_cycle_list(struct ExtendedGadget  *egad);
  98. struct RastPort  *create_rast_port(USHORT width, USHORT height, USHORT depth);
  99. VOID   free_rast_port(struct RastPort  *rp, USHORT width, USHORT height);
  100. VOID   change_count_gadget(struct ExtendedGadget  *egad);
  101. VOID   timer_delay(ULONG seconds, ULONG micros);
  102. VOID   print_gadget_text(struct ExtendedGadget  *egad);
  103. VOID   print_cycle_text(struct ExtendedGadget  *egad);
  104. VOID   print_count_text(struct ExtendedGadget  *egad, BOOL print_new);
  105. VOID   print_list_view_text(struct ExtendedGadget  *egad);
  106.  
  107.     /* Static pragmas - gadgets3.c */
  108.  
  109. #pragma regcall(refresh_gadget(a0))
  110. #pragma regcall(change_gadget(a0))
  111. #pragma regcall(change_cycle_gadget(a0,d0))
  112. #pragma regcall(pop_up_cycle_list(a0))
  113. #pragma regcall(create_rast_port(d0,d1,d2))
  114. #pragma regcall(free_rast_port(a0,d0,d1))
  115. #pragma regcall(change_count_gadget(a0))
  116. #pragma regcall(timer_delay(d0,d1))
  117. #pragma regcall(print_gadget_text(a0))
  118. #pragma regcall(print_cycle_text(a0))
  119. #pragma regcall(print_count_text(a0,d0))
  120. #pragma regcall(print_list_view_text(a0))
  121.  
  122.     /* Static prototypes - gadgets4.asm */
  123.  
  124. USHORT calc_prop_body(ULONG max_num, ULONG size);
  125. USHORT calc_prop_pot(ULONG max_num, ULONG size, ULONG num);
  126. ULONG  get_prop_pos(ULONG max_num, ULONG size, USHORT pot_value);
  127.  
  128.     /* Static pragmas - gadgets4.asm */
  129.  
  130. #pragma regcall(calc_prop_body(d0,d1))
  131. #pragma regcall(calc_prop_pot(d0,d1,d2))
  132. #pragma regcall(get_prop_pos(d0,d1,d2))
  133.